package com.bbg.amyam.web.mvc.security;

import org.springframework.security.core.GrantedAuthority;

public class AmyamGrantedAuthority implements GrantedAuthority {

	public static final String ROLE_USER = "ROLE_USER";
	public static final String ROLE_ROOT_ADMIN = "ROLE_ROOT_ADMIN";
	public static final String ROLE_SCHOOL_ADMIN = "ROLE_SCHOOL_ADMIN";
	private String authority;

	public AmyamGrantedAuthority(String role) {
		this.authority=role;
	}

	@Override
	public String getAuthority() {
		return this.authority;
	}

}
